package com.atguigu.tingshu.model.album;

import com.atguigu.tingshu.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 二级分类表-->对应base_category2表
 *
 * @author sun
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("base_category2")
public class BaseCategory2 extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 二级分类名称
     */
    @TableField("name")
    private String name;
    /**
     * 一级分类编号
     */
    @TableField("category1_id")
    private Long category1Id;
    /**
     * 排序
     */
    @TableField("order_num")
    private Integer orderNum;

}